Move pre into template function.