Migrated WMS code from sorvi to takomo