Adding code for reading boundaries