Move function out.