Added support for multiple optional uri parameters