Slightly simplify opening file