Refactored extensions out.