Addition of code to fetch master id and skeleton for insert.