Reordered functions in post controller.