Defined a main() function.