Removing unnecessary comands