Working integer comparison