Mucking around in gui code mostly...