Qual: Better check of parameters