Condense and remove some repetition