Added ability to connect to multiple categories, closing issue #23