Refactored method to retrieve output data from server-side reference.