Improved speed

Through not checking instances in ForgetLoop and faster writeout using
csv dictionary.