Fix build break; add function declaration