Better pointer checking.