Make slaves number configurable