Updated to write the bio files