Expanding the existing LAB function