Added support for insert (suggested in #2)