Optimization: Used translate instead of getting and setting the tops of the moving nodes.