Adding metered concurrency.

Let me know if this needs more comments.