Fixed typo and added timeout.
Added bibtex output.