Added viewport scaling