Implement block logic.