Program in Smart Router