Refactoring: use external lib.