Fixed performance issue - be careful with Debug.Log - sometimes it takes 95% of the frame