Moved logic.