#6 added random wait times