Wrote Boolean function.