Migrate bussiness logic from pc-liepaja