Changed "None" condition to all.