Added multi-selection functionality.