Replaced specific printf commands with PrintText where applicable