Clean codes and modify system commands