Added the inverse function