Added the boolean function and is working perfectly.