Improve access comparison

Fixes #36