Added task factory that is based on the default task scheduler