Added code to discover down