Update bpa.core.php