Added scaling and translating