Update to compile routine