Added timeout for APICall