Terrorism Prevention Act of 2004

As part of the Intelligence Reform and Terrorism Prevention Act of 2004 the position of Director of National Intelligence was created. What are the duties of this position and why do you think it was created?