Update Castle.php