Add params type checking