More flexible foreman configuration