Fixed some more issues for running with multiple UEs. Added configuration option for the number of UEs.