Modifications to lencat