A code sim I did for Lore about a year ago