Fixed streamwriter and added Crit

!!!