New way of opening files