College students often stay up all night to write term papers.