Made it possible to log stuff to a file.