Refactoring alfred.py (work path).