Fixes #1, split config and task into different files