First bit of legacy code: Chile