Refactoring and removed method Isblocked