In waitForStatusChanged(): corrected function returning nothing; function now returns status.