Fixed data order in sim program and made constants ll