Adding coord to census function