Added processing 0 and 1 in loops and conditions