Refactored exploit templates