Added handy extension method for retriving parameter values