added wait-time command line option