Error with printing; prints out whole commands