Added multiple screen resolution support