Added inverse method.