Base logic implementation. Now server sends response according mapping