I did try with boolean at first, but got exception, and didn't want to trace the cause, so made it this way.