GitHup Issue #18 - Extracted flush behavior into a private method. Calli...

GitHup Issue #18 - Extracted flush behavior into a private method. Calling flush from both setValue and clearValue.