added sleep method to web api controller to test network latency