Modified postAnalysis (updated variables + functions)
See toDo list for more priorities