Updated to reflect use of references