Removed unsigned comparison; Added missing return