Added method to GC.
Fixed non existing resource deletion in new template.
Fixed the update in-place logic.