Backend Code for Client-side functionalities