Added control reversal function