Completed 1st version of POST handler.