Methods for calling server-side code