Added configurability to task system. Not very elegant. Should work though.