The util code for ChaoWrd project