added timeout of 5 seconds