Remove unneeded commands