Removed unused matrix math.