An interpretation and modification of the SWT function