[tor-commits] [arm/master] Breaking main() method into helper functions