Periodic flow replacement now available through command line arguments.

Also cleaned up log messages.