Main function.

Console application for Windows.