Added possibility to set inputs to read only.