optimize
verb (used with object)
to make as effective, perfect, or useful as possible.
Used to describe an action that was ongoing continuously in the past up until another past event interrupted it.