Started breaking fox bin script into different modules and cleaning it up.