Add read from file functionality.