Added runTask and runTasks method to Activity class