Implemented PUT and POST methods