Added conditionals involving ls