registerTask: very basic implementation.