Changed parameter from string to object.