Changed the order of private methods.