added a timeout of 5 minutes