Added basic support for event subscriptions.