Modified to display commands correctly