Trying to limit using raw pointers