Add simple implementation of main function.