Added initial working for handling multiple cases in insertions