Use params instead of hash