Added ability to initiate in read only vs edit mode.