Removing redundant asm instructions from the runtime library. Updated wrappers and checks to address possible overflow