Correct displacement for y axis with negative values
Add fuzzy logic section