Refactored BearScript (working draft), added cancellation.