Their relationship soon turns into one of bitter rivalry once Ryan learns that Jim has been discussing with the CFO, David Wallace, the downsides of Ryan's company website. Once Ryan begins feeling overly stressed with the failure of the website, he turns to drugs and drinking and decides to find a way to fire Jim, fearing that Jim is undermining his authority and making him look bad to his superiors. He first puts a shocked Jim on "warning" for all of his pranks on Dwight, flirting with Pam, and inadequate sales figures, then pressures Jim to record a huge in-person sale as one made through Dunder Mifflin Infinity. As Ryan tries to fire Jim under false pretenses, Jim begins to develop raw hatred for him. Jim is also shown to be delighted when Ryan was arrested for sales fraud and is relieved that his job is finally safe from Ryan's paranoid business practices. After Ryan was released from prison, he returns as a fill in for Pam after she goes to design school and immediately apologizes to Jim, albeit in a very cynical and egotistical fashion, but Jim accepts his apology regardless, though not without sarcastically mocking him regardless (in his apology, Ryan expresses pride in "giving back to the community", to which Jim responds "You're talking about your court-ordered community service?")