Use params to replace hard code