Moving resize to end of file