Sort of works, but requires sleep statements