Changed insert procedure