Added metrics, updater and more protocol stuff.