Moved checkParameters method from main to ProcessParameters