Adding implementation for cosm_parser