Final version used for the competition