Added flushing of cached target element. #6