Added ESC testing code