Updates for working functions

Updated both functions for the inverse cacheing