Fixed bug where I was calling the example functions and not the new invert functions