Logic to insert new pastes