Shouldnt function_main be at the very bottom?