Code for compiling thesis.