The federal government collected a record $1.08 trillion in taxes in the first four months of fiscal year 2017, but the federal government still ran a $157 billion deficit during that time, according to the latest monthly Treasury Department statement.

Treasury receipts include tax revenue from individual income taxes, corporate income taxes, social insurance and retirement taxes, unemployment insurance taxes, excise taxes, estate and gift taxes, customs duties, and other miscellaneous items.

In the first four months of fiscal year 2017, which included October, November, December, and January, the amount of taxes collected by the federal government totaled $1,084,840,000,000. The 2017 fiscal year begins on Oct. 1, 2016, and runs through Sept. 30, 2017.

The government collected more taxes during the first four months of this fiscal year than all previous fiscal years, even after adjusting for inflation. Last year during this time the federal government collected roughly $1.079 trillion in taxes.

Most of the taxes came from individual income taxes, which comprised more than half of that total, totaling $550 billion.

Although the federal government brought in approximately $1.08 trillion in revenue in the first four months of fiscal 2017, according to the Treasury, it also spent approximately $1.241 trillion, leaving a deficit of approximately $157 billion.