Improved handling from and destination request params. Still needs further improvements.