Implements input references for merge blocks