Added a execBlock method which replays the given block