Added support for other UI toolkits.