Improve the grammar of the following sentence.
It had been really hard and time-consuming but the hospital would continue working.
It had been really hard and time-consuming, but the hospital would continue operating.