Changed $app paradigm.