Moved lorentz functions to the class