Cleaned up the code of the FGControl and ConsoleClient classes.