Implemented update tip logic.
Minor.