Refactor for convenience.