Implements flat line check