Simple main function.