Added types for read and write functionality for locations.