Add basic implementation of digest loop and watchers