Recalculate all variables