Made skeleton functions and server functions the same as original, except for memory problems.