Move function definition