Added argument options for specifying mode of operation.