Main algorthym changed on server