How to check currently active process