Migrate several scripts into one tool