Moved $function definition up to make IDE happy.

Change-Id: Ie42ba484c8c2f65a2ae233f0176a286578555cb2
Merge "Moved $function definition up to make IDE happy."