Added continuation to the Entity's logic