Cleaned up code in POST section.