Changed if clause