Updated getBoundaries to return useable data