Added scaling support.