Refactoring fetch from backend