Refactors insert for speed and clarity