Uses params hash