Fixed reference error.
Fixed logs and reference.