Tom - added bounds calculations for the screen