Cleaning up the code for Sprout