Methods for reconditioning a polishing pad and detecting diamond contamination of the polishing pad, are disclosed. A user may be presented with a graphical user interface. The source code is transformed into optimized code by modifying the source code to include code for performing at most two cache lookup operations for the reference stream to obtain two cache line handles. The middleware server transmits a connection request to the data server. In this manner, a gaming machine is provided in such a manner that a variety of information can be provided to a player and replenishment of IC cards or removal of redundant IC cards can be performed timely. Data coding and entropy coding are performed with correlation and grouping is used to increase coding efficiency.