Added error checking for dwell time option input