Use fileconfiguration instead of iterating all possible slots