Prevents crash if illegal arguments entered