Improved reading algorithm, dynamic sidelength and accuracy score