Added modify script and function.

Also added better dev testing options for debug.