Use pre_cmd rather than cmd_prefix