added latelem datatype and basic functionality