Fixed minor error and improved the spine movement functions