Add getCnt and setValues functions.