Refactored the Leola runtime to include sandboxed mode