Portable framework for scaling