Switch to object notation for params on states