Removed static keyword from Y compare.