Registering/unregistering notifications when setting blocks