As was mentioned before, ideally this should be done inside of a setcode block.