Convert to a script