Use setTranslation instead of x= to improve performance