Working on combining functions and references.