Separated pool config from main code