Added saveAllObjects call to save multiple objects