This could also be organized a bit better. `now` is a confusing variable name. Stop and pending should probably be isolated by a newline.

It just helps to make the code more readable.