Changed checkButtons to interval comparison syntax