Don't try to write readonly fields
Merge pull request #2 from djowett/master

Don't try to write readonly fields