Has infinite loop but doesn't crash