Refactor some code and add Ship tip.