Moved profiling below return