Adding initial port of UI code.