Added some to orbit function