Added methods to compare
Moved code to other method