A func to get params