Changed the slave collection to a Map object.