Adding changes related to the addingObj functions