Robert's GUI code added