Convert Thug class to Thug API