Updated comparison operators with working (hopefully) procedure.