Added type hinting in loop