Adding possibility to add objects to the YAML file.