Improved access check.