Fix the reaper script and removing unused functions I found nearby