Add more debug prints and change ratio() with quick_ratio()