Moved function.