Brought more flexibility to redirect methods.
Merge pull request #13 from umpirsky/flexible-redirect

Brought more flexibility to redirect methods.