Fixed prototype extend, added default source getter function