[Code] Updating tip command

Continue to update the do_tip command.