Remove superfluous brackets.
Add support for generating the info hash.