Adding ref() usage