Bugfixes in the analyzer
Pause code (Ported from RepetierHost, untested)