Added try_ptr macro