Finalizing code to run various parameter changes