Add type hinting to handle method