Fixed div 0 bug from shifting data too far. Renamed vars to be more accurate