Adds initial analysis and functions