Attempt 1 at adding subscriptions

Nowhere near the best implementation possible yet, just trying
things out.