Added params attribute for key constructor