Server Side PseudoCode