Cleaned up the POST code.