Add a few private methods to the headers to have type checking.