Added sources from cwt-core.