Move function to the right file