Added writeable check