Declare function after pop scope