Wrote most of script handling code. Fixed bugs.
Just need to implement timers/alias stuff, then it's done.