Added assertions for attempting to switch on/off non-existent blocks.