Improved process detection