Added initial functionality to federation.php