Got list loop working