Moves lifecycle methods to the top so I can read this.