Updated serial_regression.py