New convenience function for GUIs