Changed the order of method execution.