+\listoftodos[Todo]
+
+\glsaddall{}
+
+%Abstract
+\addcontentsline{toc}{chapter}{Abstract}
+\chapter*{\centering Abstract}
+\begin{quotation}
+ \centering\noindent
+ \input{abstract}
+\end{quotation}
+
+\addcontentsline{toc}{chapter}{Acknowledgements}
+\chapter*{\centering Acknowledgements}
+\begin{quotation}
+ \centering\it\noindent
+ \input{acknowledgements}
+\end{quotation}
+
+%Table of contents
+\tableofcontents
+
+\addcontentsline{toc}{chapter}{Glossaries \& Acronyms}
+\printglossaries%
+
+\mainmatter{}
+\glsresetall{}
+\chapter{Introduction}\label{chp:introduction}
+\input{introduction}
+
+\chapter{\acrlong{TOP}}\label{chp:top}
+\input{methods.top}
+
+\chapter{\acrlongpl{EDSL}}\label{chp:dsl}
+\input{methods.dsl}
+
+\chapter{mTask}\label{chp:mtask}
+\input{methods.mtask}
+
+\chapter{Architecture}\label{chp:arch}
+\input{results.arch}
+
+\chapter{mTask continued}\label{chp:mtaskcont}
+\input{results.mtask}
+
+\chapter{Conclusion \& Discussion}\label{chp:conclusion}
+\input{conclusion}
+
+\appendix\label{chp:appendix}
+
+\chapter{Communication protocol}\label{app:communication-protocol}
+\input{appendix-protocol}
+
+\chapter{Device client interface}\label{app:device-interface}
+\input{appendix-device-interface}
+
+\cleardoublepage{}
+\phantomsection{}
+\addcontentsline{toc}{chapter}{Bibliography}
+\bibliographystyle{ieeetr}
+\bibliography{thesis}
+
+\cleardoublepage{}
+\phantomsection{}
+\addcontentsline{toc}{chapter}{Lists of \ldots}
+\begingroup
+\let\clearpage\relax
+\listoffigures%
+\listoftables%
+\lstlistoflistings%
+\listofalgorithms%
+\endgroup
+