Added cache and basic template file.