Refactor: Just pass merge as the function