Added conditional loop and boolean.