Initial version working with pylems