Updated functions and plots
Updated functions and plots