Added readonly functionality.