Added server tick handler.