Smoothing coded, ready to start debugging