Implemented GET and POST methods.