Add pho dependency.
Refactor render(...) function.