Works with blocking statement.