First draft of GUIElement subroutine support