Handle version passing limit. Add unit tests.