Added LayerObject class.