Adding shortcut function doGenerateCurrent().