Implemented support for query length limiting finally.