Worked on redirect class and implemented it.