Edited for profiling.