Added extra stat for pattern ordering. Increased timeout. Improved string representation of pattern query.