Removed unnecessary heap-allocated bool.