Added framework for the 'do' command and native function support