ported StreamConditions, Conditions fixed
ported TimeConditions, Conditions fixed