Didnt work, so just using breaks instead