Initial implementation of insert