Created functions to create entities on server