Re-added the createReturnData method