Fixed bug with calculating revolutions by simplifying code.