Implemented product recognition method.