Parsing values
Moved index into api.php