Added prints for better testing.