Added function wrapper for insert elements.