Added optional verification to write methods