Refactored gorunner functions to tasks.