Messed with some server functions to improve them.