Added arm function and tweaked spinning function