Fixed some stuff for prototype scripts