Handler generator