Adding basic stand-alone PintoBean code extracted from NRG library.