Type hint to avoid reflection.
Fix really weird bug where loop was holding head.