Consider using DATA statements and shoving those into an array. It will tidy up the IF statements, and make the code (Although it does look pretty pleasant already) look a bit more pleasant to look at while possibly editing the program.