Optimisation of inserting, now works very qiuck.