Can now handle opening emoty files