Profile function done.