Modified to allow the use of '.' notation for specifying the path for the new object.