Added gui coding.