Move function to the place where it should be.