Refactor Scaffold API with Box

Refactor Scaffold API with Box.