setBlocking method added