More of the script ported