Remove some unnecessary commands