Adding the current task to the registry