Removed access to internal variabel cpty.