Got the inverse thing working