Refactored C to use arguments instead of a menu.