Added functions to allow shell exec in small contexts