Added functions to add and switch among collections.