Is comparing pointer addresses what you really want to do here?