Added more checks for required programs