Screen resolution now can be given as a parameter