Added persist-object method