Maybe not the better name for this function but more than one command need to execute this code.