Put stat linked hash map insert into its own method.