Completed boolean function.