Different method for setting timeout