Implemented MAC for client