Add function to parse WAL location.