Reset core only just before starting loop