Make params an object instead of an array