Markets With Frictions