First pass at making this tool actually functional.