What does the parameter `hardcore` do? Please add a JSDoc comment.