FEAT: added routines support to interpreter. Fixes issue #378.