Added some prints for debugging.