added Lars Werkman helper code to enable QuickReturn