Fixed loops and condition doing shit