Updated the way program name is fatched