Refactor to dynamicly load tasks.