Replaced insert() by this cleaner way to add entries.