Add sandbox, core.
Refractor code.