Refactored requireConfig