Logic uses gui functions no more.