Code to print node statuses added