Added method for (optionally) not save added layers to the console's
xml.