Changed while statement from 0 to 1.