Indenting is screwy here.  That last machine_profiling line should be back one tab.