Reworked some scripts.