min and max wait time can now be passed in as an option