Refactored to bring to define pdb sample in loader.