nitpicking here, but would be nice to use a named parameter for the boolean argument.