Adding constant resolution to code