Essays On Queueing Systems With Endogenous Service Times