Added 'network' flag to setter and getter

Also some checking have been added to prevent user from writing to the
wrong places!