We should probably make a copy of `properties` here rather than just modifying the passed in collection. This will prevent us from modifying the passed in collection and protect us from modifications to it in the future.