Add redirect and passToNext option for more flexibility.