Added "open file" method.