+1, see too my comments on the "outdated" code above