Screenscale code. Majority of new code is in here.