Better handling of wrong inputs.