Added open file functionality.