setValue method added.