Changed type of shared clients to IntMap for efficiency