Implementing the BinaryParser proposal using the CDescriptor class.
updated
Check if part is not null when set the selection.
Check if page exists before adding a listener.