Added a task scheduler to improve load times.