Implemented comparation methods.