added 11th function to flowchart.