Maybe wrap this in a sub to eliminate the duplication with below