Got iteration working correctly
Fixed iteration again, completely this time