Added hooks for updating inventory