Is it possible to modify this script to use snap offset as a point of reference when replacing items?