Make some methods static.
Allow seconds to be 0 in wait_for_strings.