The refinery will retain the renewable energy credits generated from the sale of biogas, which will reduce its need to buy the credits on the open market. The high cost of those credits, called RINs or Renewable Identification Numbers, was one of the main sources of financial pain that sent the refinery into bankruptcy.