Added block handler for state transition
Merge pull request #25 from KieranLafferty/blocks

Added block handler for state transition