Added backend implementation of subject merging.