Adding start of key data write functionality.