Changed to synchronous insert