Adding readOnly option. Closing #119.