Updated gui class.