Added x to setPosition