Several new scripts, various bugfixes