Add backend functions and php