diff --git a/latex/thesis.tex b/latex/thesis.tex
index 3f20999f41d2d4522a5bf3534d4222b8cb0d6b9f..b561b7ebfbc081a8d66dd3051161679d34a93208 100644
--- a/latex/thesis.tex
+++ b/latex/thesis.tex
@@ -22,7 +22,6 @@
 \usepackage{subfig}
 \makeatother
 
-\usepackage{minted}
 \renewcommand{\listingscaption}{Ohjelmalistaus}
 
 \addbibresource{Bibliografia.bib}
diff --git a/latex/utuftthesis.cls b/latex/utuftthesis.cls
index e53d88561ba30b3f46ad5ab8c0e28f9189f4194d..5ef98654c53efc2214de49eeab1f65695c41fd57 100644
--- a/latex/utuftthesis.cls
+++ b/latex/utuftthesis.cls
@@ -205,6 +205,8 @@
 \else
 \RequirePackage{listings}               % handle inclusion of source code.
                                         % note: does not support utf-8 properly!
+\newenvironment{minted}{\verbatim}{\endverbatim}
+\newcommand{\listingscaption}{\sourcecode}
 \fi
 
 %% some more suggestions
@@ -277,10 +279,12 @@
   \newcommand{\refs}{Lähdeluettelo}
   \newcommand{\appname}{Liitteet}
   \renewcommand{\nomname}{Termistö}
+  \newcommand{\sourcecode}{Ohjelmalistaus}
 }{
   \newcommand{\refs}{References}
   \newcommand{\appname}{Appendices}
   \renewcommand{\nomname}{List of acronyms}
+  \newcommand{\sourcecode}{Listing}
 }
 
 %% magic thesis types. more can be added