Cut down on code duplication