added parallel foreach loop to Tick function