Improved process handling