Optimized for small resolutions