Added main() function.