Added scaling correctly.