Some work on client. I still dont remember how exactly did I originally plan it