Removing call to undefined function