Checking for needed parameters