Implemented 'insert rows' functionality