Restructured waitFor commands