Fixed repeated output of commands