Changed from to to and fixed continue errors