#4 - Fixed bug where the same statement would execute multiple times. Added namespaces and external functions.