Updated for insert