Removed some unused code. Fixed a bug of controller not recognizing the G column.