Replaced attribute access with function.