Move raw pointer usage/delete to RAII in interaction