Changed setDirection(int) to setReversed(bool)