Refactoring from methods for more clearness.