Update control.cpp