Added support for different screen sizes. Part of implementation.