Basic auto merge feature implemented.