DJR:Made params an object with all attributes