Jump through some hoops to reduce compiler warnings.