Script pretty much done, needs testing, though.