Moved tasks to lib directory to allow importers to use tasks