Fix formatting of parms and replace $getObject() with $object