Get rid of all write permission code