Result limit implemented. Fixes #1