Refactor saveRef
Shuffle
Read configuration
Read configuration