Broke out each command group into own functions.