Fixed the UnboundLocalError
Disabled the processing of pending operations
Merge pull request #4 from wico/master

Fixed the UnboundLocalError