Rewriting scrimpster as a ruby script.