Implemented GUI and stats.