Move Medsys functions to server side.