First pass conversion

Script actually worked!