Move CW funcs into cw directory