Make read & write functions work with multiple anchor files