Added function to create a server