Slight adjustment
Algorithm good?