Functions Wacky

Set up variables
Functions- Wacky

Calculate runs
Functions - Wacky

Set up anonymous function