Adding a timeout for the remote call