Added Functions.cs and UI Changes