Implemented end-point loading.  Introduced function Attribute to improve readability.