Added basic 'collector' functionality. TODO: Documentation for collectors.