`waitForOutput` currently looks for an exact string match. I believe allowing for a regex would be really useful