Added config flag and evenweight galaxy