Added resetStyles method.