Added start of gui code.