Added option to process several elements with a single handler.