Moved user defined dangerous functions to template