Fixed use of deprecated type 'bool'.