Removed dummy params, ignored task cancelled exception, and added thread sleep