Added allowCR option and implementation.