Converted to gui interface.