Changed redirect method