Add basic support for scaling, Closes #1