Making CORG script work