Cut down on code duplication a bit