Adjusting loops for graphic size and removing Hive