Early events in protein folding