Generalized coder code with function pointers.