Added Write handling.