Changes done to handle http requests