Inserting code of PBC reading to setGenericBC().