Move out #initialize block handling to a separate method
Use methods instead of blocks for action result handling since they are growing in code now.
Add flapping and transition checks to Readme example.