Added GUI support as well.