App now writes out to a file