Fixed templates and added resources.