Add check for writability