Cleaning up console writes and making the pathing more resilient