Implemented interfaces to communicate with gtg.