Implemented atmost and atleast in client