Now accepts and object for init params.