Only run certain commands on refresh