Fixed compile error after moving init code to begin function.