Added sleep method to give the delayed_jobs some time to process import before redirecting user to the course list