Added some functions that were moved from exec-tutorials