Update handleFunction to match walkes signature changes