For loops actually working