Maddie had a paper due at school in the morning.
She finished the paper just before time to go to class.
She had to pull an all nighter because she had procrastinated on getting her work done.
She had to pull an all nighter because she had worked ahead on getting her work done.