Fixed key() method and simplified related offset functionality.