Tweaked for smaller resolutions