CXX-176 implement limit

Implemented real limit semantics.