Added parameter checks to console app.