First working version of pile code with sandbox wrapper