Changed the way process name is assigned