Fixes wrong print and adds some waits.