added sleep while checking for status