Added some code for POST messages