Use genx in handler also.