Added blocked thread checking functionality