Added getparam function