Add function for CSF with colored input