Added redirect to a function..