Added tips.
Changed to use get_object_vars() rather than passing an object.