Added registerTask which work in similar way as events
shortened method names