Add functions to the sources in the repl. Fixes #192.