Label support

Adds support for label filtering.