Add redirect functions.