Use a private method for calculating the resolution.