Just put in a few if statements

don't run commands over and over again!