Changed wait logic to ensure that 60 seconds have elapsed