Added g m for merging