The album was written .
The album was recorded throughout 2004 following Reznor 's battle with alcoholism and substance abuse and legal issues with his former manager , John Malm Jr .
The album was written and recorded throughout 2004 following Reznor 's battle with alcoholism and substance abuse and legal issues with his former manager , John Malm Jr .