Avoid any possibility of modifying hash while iterating through it (closes #75)