Fixing bool usage, bool has been depresiated in favour of boolean