Make task configurable
Order methods
Refactor taskExists, add task in index