Bugfix. Stopped loop was caused by overflow.