Fixed both discover and simple_cache apps so that they now work as a
distributed application....