Move ptr to utils