More work on the reference

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>