Classname and function rewrite