Added sleep to allow time to set up recording