No idea what the original dir code did...