Implemented fetch.php functions