Imported from https://github.com/akaraspt/tl_paper