Changed screenDimensions and a method relating to it from static to not static.