Reducing the number of commands added to the path