Added a main for the merge part