Tried pointers, but LiBr still does not work. Somnehow the object gets converted to the base class.