Added a new general method that should be used for merge