Refactor: make code more beauty.