Some style tweeks
Added a delay in accessing HTTP API