The first babysteps in porting this to Go