More back-end support for exclusion and limiting.
Added dodgey support for limiting on the front-end.