Make sure parameters are good