Updated to accept an object instead of a list of params