Cleaned up Sprout-EWMA code.