Got reference working, adjusted what is output.