Add initial trivial implementation of endmembers function