Added inverse function and others