Logika dodana do servera