Made the panel scripts more readable