ADDED GUI VERSION