Added setParameter method for setting single parameters.