Refactoring. Added support to merge multiple items of same type within a given group. Fixed minor background update bugs.