Refactored template locating. Should be easier now.
Stored cookies can also be read