Moved update edx script to code snippet