Added profiling to main16.py.