Allowed to enter booleans as arguments, and removed unused line that cause compilation error