Partial implementation of XLMHandler