Cleaned up Digital to not open / close file handles every time.