Changed Join to handle priority scheduler