Trevor's Gen Code