Change function position in code