Added some try/catch logic to insert.