Adding START and STOP handlers for OSProcess
Some refactoring