Þe olde BeOS code from dayes of yore