Adds prepare/finish execution for merge blocks