Main C file