Updated to use app fog instead of doing things locally so I can test in the lab.